import java.util.Scanner;

public class Solution
{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int n = Integer.parseInt(line);
		
		line = sc.nextLine();
		String[] numbers = line.split(" ");
		int[] arr = new int[n];		
		
		for(int i = 0; i < n ; i++){
				arr[i] = Integer.parseInt(numbers[i]);				
		}
		
		for(int i = 1; i < arr.length ; i++){
			int key = arr[i];
			int j = i -1;
			
			while(j >=0 && arr[j] > key){
				arr[j+1] =arr[j];
				j--;
			}
			arr[j+1] = key;				
		}
		for(int i = 0; i < arr.length ; i++){
			System.out.print(arr[i]+  " ");
		}
		System.out.println();
	}
}